/*
 * @Author: wuchao66_Git 2803670835@qq.com
 * @Date: 2023-10-24 11:55:07
 * @LastEditors: wuchao66_Git 2803670835@qq.com
 * @LastEditTime: 2023-10-31 15:56:47
 * @FilePath: \t162vue\src\router\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/*
 * @Author: wuchao66_Git 2803670835@qq.com
 * @Date: 2023-10-24 11:55:07
 * @LastEditors: wuchao66_Git 2803670835@qq.com
 * @LastEditTime: 2023-10-30 10:13:36
 * @FilePath: \t162vue\src\router\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/*
 * @Author: wuchao66_Git 2803670835@qq.com
 * @Date: 2023-10-24 11:55:07
 * @LastEditors: wuchao66_Git 2803670835@qq.com
 * @LastEditTime: 2023-10-24 12:19:37
 * @FilePath: \t162vue\src\router\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
  // {
  //   path: '/',
  //   name: 'home',
  //   component: HomeView
  // },
  {
    path: '/',
    redirect:'/t161'
  },
  {
    path: '/t161',
    name: 'home',
    component: () => import('../views/demo3路由/main.vue'),
    children:[
      {
        path: '/p1/:id',
        name: 'p1',
        component: () => import('../views/demo3路由/p1.vue'),
      },{
        path: '/p2',
        name: 'p2',
        component: () => import('../views/demo3路由/p2.vue'),
      },{
        path: '/p3',
        name: 'p3',
        component: () => import('../views/demo3路由/p3.vue'),
      },{
        path: '/p5',
        name: 'p5',
        component: () => import('../views/demo3路由/p5.vue'),
      },
      {
        path: '/p6',
        name: 'p6',
        component: () => import('../views/demo3路由/p6.vue'),
      }
    ]
  }
  
 
  
  
]

const router = new VueRouter({
  routes
})

export default router
